﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HoangPhap.Bussiness
{
    public class CharityProgramTranslation
    {
        public int DeleteById(int id)
        {
            return new Data.HoangPhapDataContext().CallCharityProgramTranslationsDeleteById(id);
        }

        public int DeleteDynamic(System.String whereCondition)
        {
            return new Data.HoangPhapDataContext().CallCharityProgramTranslationsDeleteDynamic(whereCondition);
        }

        public int Insert(System.String name, System.String description, System.String content, System.Int32 languageId, System.Int32 charityProgramEntityId, ref System.Int64 id)
        {
            return new Data.HoangPhapDataContext().CallCharityProgramTranslationsInsert(name, description, content, languageId, charityProgramEntityId, ref  id);
        }

        public int InsertUpdate(System.Int32 id, System.String name, System.String description, System.String content, System.Int32 languageId, System.Int32 charityProgramEntityId)
        {
            return new Data.HoangPhapDataContext().CallCharityProgramTranslationsInsertUpdate(id, name, description, content, languageId, charityProgramEntityId);
        }

        public int Update(System.Int32 id, System.String name, System.String description, System.String content, System.Int32 languageId, System.Int32 charityProgramEntityId)
        {
            return new Data.HoangPhapDataContext().CallCharityProgramTranslationsUpdate(id, name, description, content, languageId, charityProgramEntityId);
        }
    }
}
